<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %} {{title}} {% endblock %}

{% block page_styles %}
<script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
{% endblock %}

{% block page_content %}
<div class="row">

    {% block alert %} {% endblock %}

    <div class="col-lg-2 col-12 side-main offset">
        {% block settings_left_menu %}
        <div class="panel panel-default">
            <div class="panel-heading">主机信息</div>
            <div class="panel-body" style="padding: 0px;">
                <div class="list-group" style="margin-bottom: 0px;">
                    <a href="{{ url_for('host_view.info', host_id=host_id) }}"
                       class="list-group-item {% if active_menu == 'info' %} active {% endif %}">基本信息</a>
                    <a href="{{ url_for('host_view.connection', host_id=host_id) }}"
                       class="list-group-item {% if active_menu == 'connection' %} active {% endif %}">连接历史</a>
                    <a href="{{ url_for('host_view.command', host_id=host_id) }}"
                       class="list-group-item {% if active_menu == 'command' %} active {% endif %}">命令历史</a>
                </div>
            </div>
        </div>
        {% endblock %}
    </div>

    <div class="col-lg-10 col-12 conternt-main">
        {% block settings_right_content %} {% endblock %}
    </div>

</div>
{% endblock %}